<script type="text/javascript">
function check_submit_1(){
    var item_1 = $("#project_review_author_name").val();
    var item_2 = $("#project_review_executor_name").val();
    var item_3 = $("input[name='project_review_status']:checked").val();
    var item_4 = $("#project_review_remark").attr("value");
    var item_5 = $("#project_review_confirmor_name").val();
    if(item_1&&item_2&&item_3&&item_4&&item_5){
        return true;
    }else{
        alert('请检查完整再确认！');
        return false;
    }  
}
function check_submit_2(){
    var item_1 = $("input[name='project_maintenance_hardware']:checked").val();
    var item_2 = $("input[name='project_maintenance_bandwidth']:checked").val();
    var item_3 = $("input[name='project_maintenance_server']:checked").val();
    var item_4 = $("#project_maintenance_remark").attr("value");
    var item_5 = $("#project_maintenance_confirmor_name").val();
    if(item_1&&item_2&&item_3&&item_4&&item_5){
        return true;
    }else{
        alert('请检查完整再确认！');
        return false;
    }  
}
function check_submit_3(){
    var item_1 = $("input[name='project_monitor_system']:checked").val();
    var item_2 = $("input[name='project_monitor_business']:checked").val();
    var item_4 = $("#project_monitor_remark").attr("value");
    var item_5 = $("#project_monitor_confirmor_name").val();
    if(item_1&&item_2&&item_3&&item_4){
        return true;
    }else{
        alert('请检查完整再确认！');
        return false;
    }  
}
</script>
<!-- Page content -->
<div id="page">
    <!-- Wrapper -->
    <div class="wrapper" >
        <h3>审核项目</h3>
        <!--<span class="subtitle">审核新的项目</span>-->
        <hr>
        <div id="tabs" class="ui-tabs">
            <ul class="ui-tabs-nav">
                <li><a class="corner-tl" href="/admin_project/index">项目列表</a></li>
                <li class='ui-tabs-selected'><a class="corner-tr" href="/admin_project/addproject">审核项目</a></li>
            </ul>
            <div id="tabs-1" class="ui-tabs-panel">
                
                    <table class="stylized full">
                        <tr>
                            <td><span class="red">*</span>上线项目：</td>
                            <td><U> <?php echo $projectinfo['project_name']; ?> </U>
                            </td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>审核时间：</td>
                            <td><U> <?php echo empty($projectinfo['project_time'])?'暂无确认时间':date('Y-m-d H:i:s',$projectinfo['project_time']); ?> </U>
                            </td>
                        </tr>
                        <form id="admin_project" method="post" action="/admin_project/project_review" onSubmit="return check_submit_1()">
                        <tr>
                            <td><h5>1 复查确认：</h5></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>源码编写：</td>
                            <td><input type="text" class="" size="28" name="project_review_author_name" id="project_review_author_name" value="<?php echo $projectinfo['project_review_author_name']; ?>"/>
                                <label for="project_review_author_name"></label>
                            </td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>Review 人：</td>
                            <td><input type="text" class="" size="28" name="project_review_executor_name" id="project_review_executor_name" value="<?php echo $projectinfo['project_review_executor_name']; ?>"/>
                                <label for="project_review_executor_name"></label>
                            </td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>是否通过：</td>
                            <td><input type="radio" name="project_review_status" value="0" <?php if($projectinfo['project_review_status'] == 0 && !is_null($projectinfo['project_review_status']) ){ echo "checked=checked";}?> > 通过 
                                <input type="radio" name="project_review_status" value="1" <?php if($projectinfo['project_review_status'] == 1 ){ echo "checked=checked";}?> > 不通过
                                <input type="radio" name="project_review_status" value="2" <?php if($projectinfo['project_review_status'] == 2 ){ echo "checked=checked";}?> > 忽略 
                                <label for="project_review_executor_name"></label>
                            </td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>备注：</td>
                            <td><textarea name="project_review_remark" style="margin: 2px; width: 227px; height: 37px;" id="project_review_remark"><?php echo $projectinfo['project_review_remark']; ?></textarea></label>
                            </td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>确认人：</td>
                            <td><input type="text" class="" size="28" name="project_review_confirmor_name" id="project_review_confirmor_name" value="<?php echo $projectinfo['project_review_confirmor_name']; ?>"/></label>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="submit" value="复查确认" class="btn btn-green big"> &nbsp;&nbsp; 
                                <input class="btn" type="reset" value="重置">
                            <input type="hidden" name="id" value="<?php echo $projectinfo['id']; ?>" /></td>
                        </tr>
                       </form>

                       <form id="admin_project" method="post" action="/admin_project/project_maintenance" onSubmit="return check_submit_2()">
                        <tr>
                            <td><h5>２ 运维确认：</h5></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>硬件资源：</td>
                            <td><input type="radio" name="project_maintenance_hardware" value="0" <?php if($projectinfo['project_maintenance_hardware'] == 0 && !is_null($projectinfo['project_maintenance_hardware'])){ echo "checked=checked";}?> > 通过 
                                <input type="radio" name="project_maintenance_hardware" value="1" <?php if($projectinfo['project_maintenance_hardware'] == 1 ){ echo "checked=checked";}?> > 不通过
                                <input type="radio" name="project_maintenance_hardware" value="2" <?php if($projectinfo['project_maintenance_hardware'] == 2 ){ echo "checked=checked";}?> > 忽略 
                                <label for="project_maintenance_hardware"></label>
                            </td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>带宽资源：</td>
                            <td><input type="radio" name="project_maintenance_bandwidth" value="0" <?php if($projectinfo['project_maintenance_bandwidth'] == 0 && !is_null($projectinfo['project_maintenance_bandwidth']) ){ echo "checked=checked";}?>> 通过 
                                <input type="radio" name="project_maintenance_bandwidth" value="1" <?php if($projectinfo['project_maintenance_bandwidth'] == 1 ){ echo "checked=checked";}?>> 不通过
                                <input type="radio" name="project_maintenance_bandwidth" value="2" <?php if($projectinfo['project_maintenance_bandwidth'] == 2 ){ echo "checked=checked";}?>> 忽略 
                                <label for="project_maintenance_bandwidth"></label>
                            </td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>服务部署：</td>
                            <td><input type="radio" name="project_maintenance_server" value="0" <?php if($projectinfo['project_maintenance_server'] == 0 && !is_null($projectinfo['project_maintenance_server']) ){ echo "checked=checked";}?>> 通过 
                                <input type="radio" name="project_maintenance_server" value="1" <?php if($projectinfo['project_maintenance_server'] == 1 ){ echo "checked=checked";}?>> 不通过
                                <input type="radio" name="project_maintenance_server" value="2" <?php if($projectinfo['project_maintenance_server'] == 2 ){ echo "checked=checked";}?>> 忽略 
                                <label for="project_review_server"></label>
                            </td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>备注：</td>
                            <td><textarea name="project_maintenance_remark" style="margin: 2px; width: 227px; height: 37px;" id="project_maintenance_remark"><?php echo $projectinfo['project_maintenance_remark']; ?></textarea></label>
                            </td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>确认人：</td>
                            <td><input type="text" class="" size="28" name="project_maintenance_confirmor_name" id="project_maintenance_confirmor_name" value="<?php echo $projectinfo['project_maintenance_confirmor_name']; ?>"/></label>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="submit" value="运维确认" class="btn btn-green big"> &nbsp;&nbsp; 
                                <input class="btn" type="reset" value="重置">
                            <input type="hidden" name="id" value="<?php echo $projectinfo['id']; ?>" /></td>
                        </tr>
                       </form>

                       <form id="admin_project" method="post" action="/admin_project/project_monitor" onSubmit="return check_submit_3()">
                        <tr>
                            <td><h5>3 监控确认：</h5></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>系统监控：</td>
                            <td><input type="radio" name="project_monitor_system" value="0" <?php if($projectinfo['project_monitor_system'] == 0 && !is_null($projectinfo['project_monitor_system'])  ){ echo "checked=checked";}?>> 通过 
                                <input type="radio" name="project_monitor_system" value="1" <?php if($projectinfo['project_monitor_system'] == 1 ){ echo "checked=checked";}?>> 不通过
                                <input type="radio" name="project_monitor_system" value="2" <?php if($projectinfo['project_monitor_system'] == 2 ){ echo "checked=checked";}?>> 忽略 
                                <label for="project_review_executor_name"></label></label>
                            </td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>业务监控：</td>
                            <td><input type="radio" name="project_monitor_business" value="0" <?php if($projectinfo['project_monitor_business'] == 0 && !is_null($projectinfo['project_monitor_business']) ){ echo "checked=checked";}?>> 通过 
                                <input type="radio" name="project_monitor_business" value="1" <?php if($projectinfo['project_monitor_business'] == 1 ){ echo "checked=checked";}?>> 不通过
                                <input type="radio" name="project_monitor_business" value="2" <?php if($projectinfo['project_monitor_business'] == 2 ){ echo "checked=checked";}?>> 忽略 
                                <label for="project_review_executor_name"></label></label>
                            </td>
                        </tr>                    
                        <tr>
                            <td><span class="red">*</span>备注：</td>
                            <td><textarea name="project_monitor_remark" style="margin: 2px; width: 227px; height: 37px;" id="project_monitor_remark"><?php echo $projectinfo['project_monitor_remark']; ?></textarea></label>
                            </td>
                        </tr>
                        <tr>
                            <td><span class="red">*</span>确认人：</td>
                            <td><input type="text" class="" size="28" name="project_monitor_confirmor_name" id="project_monitor_confirmor_name" value="<?php echo $projectinfo['project_monitor_confirmor_name']; ?>"/></label>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="submit" value="监控确认" class="btn btn-green big"> &nbsp;&nbsp; 
                                <input class="btn" type="reset" value="重置">
                            <input type="hidden" name="id" value="<?php echo $projectinfo['id']; ?>" /></td>
                        </tr>
                       </form>


                       <form id="admin_project" method="post" action="/admin_project/project_submit">
                        <tr>
                            <td></td>
                            <td><input type="submit" value="审核项目" class="btn btn-green big" name="submit">
                            <input type="hidden" name="id" value="<?php echo $projectinfo['id']; ?>" /></td>
                        </tr>
                        </form>
                    </table>
                
            </div>
            <div class="clear">&nbsp;</div>
        </div>
    </div>
    <!-- End of Wrapper -->
</div>
<!-- End of Page content -->